package com.java并发编程.Fork_Join.RecursiveTask;

import java.util.concurrent.RecursiveTask;

/*
 * RecursiveTask 执行任务 有返回值
 */
public class MyRecursiveTaskA extends RecursiveTask<Integer>{

	@Override
	protected Integer compute() {
		System.out.println(Thread.currentThread().getName() + "begin A");
		try {
			Thread.sleep(3000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(Thread.currentThread().getName() + "end A");
		return 100;
	}

	
}
